package com.hdax.dm.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hdax.dm.entity.item.Item;
import com.hdax.dm.entity.item.ItemComment;
import com.hdax.dm.mapper.item.ItemMapper;
import com.hdax.dm.service.ItemService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItemServiceImpl extends ServiceImpl<ItemMapper, Item> implements ItemService {


    @Override
    public List<Item> getWonderfulData(Long itemTypeId) {
        return baseMapper.getWonderfulData(itemTypeId);
    }

    @Override
    public List<Item> getAdimgUrl(Long itemTypeId) {
        return baseMapper.getAdimgUrl(itemTypeId);
    }

    @Override
    public List<Item> getCarouselData(Long itemTypeId) {
        return baseMapper.getCarouselData(itemTypeId);
    }

    @Override
    public List<Item> hotItems(Long itemType1Id) {
        return baseMapper.findByType1Id(itemType1Id);
    }

    @Override
    public Item itemDesc(Long itemId) {
        return baseMapper.itemDesc(itemId);
    }

    @Override
    public List<Item> recommend() {
        return baseMapper.recommend();
    }

    @Override
    public List<Item> guesslike(Long itemTypeId) {
        return baseMapper.guesslike(itemTypeId);
    }

    @Override
    public List<Item> sell() {
        return baseMapper.sell();
    }

    @Override
    public List<Item> getRecommend(Long itemTypeId) {
        return baseMapper.getRecommend(itemTypeId);
    }

    @Override
    public List<Item> floors(Long itemType1Id) {
        return baseMapper.floors(itemType1Id);
    }

    @Override
    public List<Item> seniority(Long itemType1Id) {
        return baseMapper.seniority(itemType1Id);
    }

    @Override
    public List<Item> getPopularSearch(Long itemTypeId) {
        return baseMapper.getPopularSearch(itemTypeId);
    }

    @Override
    public List<Item> getParentChild(Long itemTypeId, Long ageGroup, Long limit) {
        return baseMapper.getParentChild(itemTypeId, ageGroup, limit);
    }

    @Override
    public List<Item> getCalendarData(Long itemTypeId) {
        return baseMapper.getCalendarData(itemTypeId);
    }
}
